package com.sq.partner.manager.dao.impl;


import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Repository;

import com.sq.partner.manager.dao.IGatewayAgentInfoMtDao;
import com.sq.partner.manager.dao.IGatewayCreditPolicyDao;
import com.sq.partner.manager.util.LogUtil;
import com.sq.partner.manager.util.Page;



@Repository
public class GatewayCreditPolicyDaoImpl extends BaseDaoImpl implements IGatewayCreditPolicyDao {
	
	private static Logger logger = LogUtil.getLog(GatewayCreditPolicyDaoImpl.class);
	
	/**
	 * 信保保单查询
	 * 
	 *
	 */
	@Override
	public Page<Map<String, Object>> queryCreditPolicyPageByCriteria(Page page) throws Exception {
		Map<String,Object> map = (Map<String, Object>) page.getType();
		//条件查询总条数
		int count=(Integer) query("queryCountCreditPolicy",map );
		page.setTotal(count);
		//条件查询数据
		page.setData((List<Map<String, Object>>) queryList("queryCreditPolicyByPage", map));
		return page;
	}

	/**
	 * 导出借意险投保信息查询
	 */
	@Override
	public List<Map<String, Object>> queryCreditPolicyListByCriteria(
			Map<String, Object> map) throws Exception {
		// TODO Auto-generated method stub
		List<Map<String, Object>> creditPolicyList = queryList("queryCreditPolicyByMap", map);
		return creditPolicyList;
	}
	
	
	
	
}
	 



















	 

 
